package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountOrderDetail;
import com.ecoolex.discount.sales.entity.DiscountOrderDetailExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountOrderDetailMapper {
    long countByExample(DiscountOrderDetailExample example);

    int deleteByExample(DiscountOrderDetailExample example);

    int deleteByPrimaryKey(Integer orderDetailId);

    int insert(DiscountOrderDetail record);

    int insertSelective(@Param("record") DiscountOrderDetail record, @Param("selective") DiscountOrderDetail.Column ... selective);

    DiscountOrderDetail selectOneByExample(DiscountOrderDetailExample example);

    List<DiscountOrderDetail> selectByExample(DiscountOrderDetailExample example);

    DiscountOrderDetail selectByPrimaryKey(Integer orderDetailId);

    DiscountOrderDetail selectByPrimaryKeyWithLogicalDelete(@Param("orderDetailId") Integer orderDetailId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountOrderDetail record, @Param("example") DiscountOrderDetailExample example, @Param("selective") DiscountOrderDetail.Column ... selective);

    int updateByExample(@Param("record") DiscountOrderDetail record, @Param("example") DiscountOrderDetailExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountOrderDetail record, @Param("selective") DiscountOrderDetail.Column ... selective);

    int updateByPrimaryKey(DiscountOrderDetail record);

    int batchInsert(@Param("list") List<DiscountOrderDetail> list);

    int batchInsertSelective(@Param("list") List<DiscountOrderDetail> list, @Param("selective") DiscountOrderDetail.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountOrderDetailExample example);

    int logicalDeleteByPrimaryKey(Integer orderDetailId);
}